html {
    background-color: #0a1628;
}
.body {
    background: linear-gradient(135deg, #0a1628 0%, #0f2847 50%, #1a3a5c 100%);
    color: #e8f4f8;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

#content {
  width: 100%;
}

.vertical-line {
  border-left: 2px solid #000;
  height: 100%;
  margin: 0 20px;
}

.flex-container-row {
    /* We first create a flex layout context */
    display: flex;
    flex-flow: row nowrap;
    
    /* Then we define how is distributed the remaining space */
    justify-content: space-around;
    align-items: center;
    
    padding: 0;
    margin: 0;
    list-style: none;
}

.flex-container-col {
    /* We first create a flex layout context */
    display: flex;
    flex-flow: column nowrap;
    
    /* Then we define how is distributed the remaining space */
    justify-content: space-evenly;
    align-items: center; 
    
    padding: 0;
    margin: 0;
    list-style: none;
}

#mobile-nav-button {
    display: none;
}
#mobile-nav-menu {
    display: none;
}

#nav-sidebar {
    align-self: normal;
    justify-content: flex-start;
    align-items: flex-start;
    top: 50vh;
    max-height: 50vh;
    width: 10%;
    min-width: 3.125rem;
    position: -webkit-sticky;
    position: sticky;
    flex-shrink: 17;
    z-index: 100;
}

.nav-sidebar-item {
    color: #66b3ff;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.6em 1em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-left: 2px solid transparent;
    letter-spacing: 0.5px;
}

.nav-sidebar-item:hover {
    color: #ffffff;
    border-left: 2px solid #3d99dc;
}

.nav-sidebar-item.active {
    color: #ffffff;
    font-size: 1.1rem;
    border-left: 2px solid #3d99dc;
    background: linear-gradient(90deg, rgba(61, 153, 220, 0.15) 0%, transparent 100%);
}

#intro-section {
    height: 100vh; /** Always takes up the entire screen on page landing */
    width: 100%;
}

#hero {
    display: flex;
    flex-flow: column nowrap;
    
    /* Then we define how is distributed the remaining space */
    justify-content: center;
    
    flex-grow: 3;

    width: 70%;
    padding: 0;
    padding-inline-start: 4.4%;
    list-style: none;
}

#affiliations {
    height: 7vw;
    width: 100%;
    gap: 1.6vw;
    justify-content: flex-start;
    margin-inline-start: 3%;
    margin-bottom: 0.5vh;
}

#affiliations > .vertical-line {
  border-left: 2px solid #42658d;
  height: 70%;
  margin: 0 1vw;
}

.badge-link {
    display: contents; 
    text-decoration: none;
}

.icon-badge {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    display: inline-block; 
}

.icon-cert {
    height: 100%;
}
.icon-cert:hover {
    transform: translateY(-2vh);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 1));
}

.icon-org {
    border-radius: 100px;
    height: 80%;
}
.icon-org:hover {
    transform: translateY(-1vh);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.548);
}

.icon-badge:active {
    transform: translateY(-1vh) scale(0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s ease;
}

#name {
    background: linear-gradient(135deg, #66d3fa 0%, #3d99dc 50%, #2565ae 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4rem;
    font-weight: 700;
    margin: 0;
    margin-inline-start: 3%;
    letter-spacing: -1px;
}

.icon-logo {
    color: rgb(126, 201, 245);
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.3s ease;
}

.icon-logo:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

#blurb {
    width: 37rem; /** rem depends on the user's root font size, which tracks with the <h1> name */
    margin-inline-start: calc(3% + .3rem);
    color: #b8d9f0;
    font-size: 1.15rem;
    line-height: 1.7;
    font-weight: 400;
}

#links {
    margin-top: .6rem;
    width: max-content;
    margin-inline-start: calc(3% + .3rem);
    justify-content: flex-start;
    gap: .625rem;
}

.sidebar-container {
    display: flex;
    width: 30%;
    justify-content: center; /* Center horizontally */

    /* Sticky Scroll Properties */
    align-self: normal;
    /* top: 0vh; */ /* done in index.js */
    height: fit-content;
    max-height: 90vh;
    /* overflow-y: auto; */
    position: -webkit-sticky;
    position: sticky;
    flex-shrink: 0;
}

.sidebar {
    background-color: rgba(14, 18, 28, 0.83);
    /* flex-grow: 1; */
    flex-shrink: 0;
    width: 80%;
    max-width: 18rem;
    height: fit-content;
    /* margin-inline-end: 80px; */
    padding: 1.25em;
    gap: 2vh;
}

#sidebar1-gpa {
    align-self: flex-end;
    margin-top: -1.25em; /** #sidebar padding is done by rems */
    margin-right: -1.25em;
    /* background-color: rgb(46, 55, 60); */
    background-color: rgba(75, 169, 220, 0.463);
    /* background-color: rgba(220, 119, 75, 0.463); */
    padding: .3em;
    border-bottom-left-radius: .625em;
}

#sidebar1-utd-logo {
    width: 3.5rem;
    height: 3.5rem;
}

#sidebar1-header {
    gap: inherit;
}

#sidebar1-school {
    font-weight: bold;
}

#sidebar1-degree {
    font-size: 1.125em;
    font-weight: 500;
    font-style: italic;
}

.sidebar1-class-header {
    margin-top: 1.25vh;
    align-self: flex-start;
}

.sidebar1-classes {
    text-align: left;
    margin-top: -1.25vh;
    margin-inline: 3%;
}

.sidebar1-class-type {
    font-weight: bold;
    margin-top: 1.2vh;
}

.sidebar1-class-list {
    margin-inline-start: 4%;
}

#sidebar1-button {
    font-size: large;
    background-color: rgba(0, 58, 124, 0);
    border: 2px solid rgb(167, 167, 167);
    color: white;
    padding: .3125em .625em;
    /* border-radius: 2px; */
    text-align: center;
    font-size: 1em;
}

.sidebar2-skills {
    align-self: flex-start;
    padding-inline: 3%;
    align-content: start;
}

.sidebar2-header {
    text-align: start;
}

.sidebar2-skill-list {
    margin-top: 1vh;
    flex-flow: column nowrap;
    list-style-type: '- ';
    text-align: start;
    /* margin-left: 15px; */
}

.sidebar2-skill {
    justify-content: flex-start;
    align-items: start;
    gap: .625rem;
    margin-bottom: .5vh;
}

h1 {
    font-size: 5rem;
    margin: 0;
}

h3 {
    font-size: 1.875em;
    margin: 0;
    padding: 0;
}

h4 {
    font-size: 1.125em;
    margin: 0;
    padding: 0;
}

ul {
    padding: 0;
    margin: 0;
    width: auto; /* or a specific width */
    text-align: center;
}

#projects {
    display: grid;
    width: 70%;
    justify-content: space-evenly;
    margin-inline-start: 4.4%;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 5vh 2vw; /* row-gap column gap */
    /* flex-grow: 3; */

}

@media screen and (max-width: 1135px) and (min-width: 1035px) {
    .nav-sidebar-item.active {
        font-size: large;
    }
}

@media screen and (max-width: 1034px) {    
    #nav-sidebar {
        display: none;
    }
    #mobile-nav-button {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        background: transparent;
        border: none;
        position: fixed;
        top: 2vh;
        right: 2vw;
        padding: 10px;
        z-index: 100;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: #66b3ff;
        margin: 3px 0;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-item {
        text-decoration: none;
        font-size: 1.2rem;
        margin-top: 5vh;
        font-weight: 600;
    }

    a {
        all: unset;
        cursor: pointer;
    }

    li {
        list-style-type: none;
        margin: 0;
        padding: 0; 
    }

    #mobile-nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 40vw;
        height: 100vh;
        background: rgba(21, 21, 22, 0.95);
        padding-top: 3vh;
        z-index: 90;
    }
    
    #mobile-nav-menu.active {
        display: block;
    }

    /* Animate to X */
    #mobile-nav-button.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #mobile-nav-button.active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-nav-button.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -7.5px);
    }

    /* Content */
    #intro-section {
        flex-flow: column-reverse nowrap;
        justify-content: center;
        align-content: center;
    }
    
    #hero {
        display: flex;
        flex-flow: column nowrap;
        
        /* Then we define how is distributed the remaining space */
        justify-content: center;
        
        flex-grow: 3;
    
        width: 100%;
        height: 70%;
        padding: 0;
        padding-inline-start: 4.4%;
        list-style: none;
    }

    #affiliations {
        height: 16vw;
        width: 100%;
        gap: 1.6vw;
        justify-content: flex-start;
        margin-inline-start: 3%;
        margin-bottom: 1vh;
    }

    .icon-org {
        border-radius: 100px;
        height: 70%;
    }

    
    #name {
        color: rgb(126, 201, 245);
        margin-inline-start: 3%;
    }
    
    .icon-logo {
        color: rgb(126, 201, 245);
        width: 2.5rem;
        height: 2.5rem;
    }
    
    #blurb {
        width: 80%; /** rem depends on the user's root font size, which tracks with the <h1> name */
        margin-inline-start: calc(3% + .3rem);
    }
    
    #links {
        margin-top: .6rem;
        width: max-content;
        margin-inline-start: calc(3% + .3rem);
        justify-content: flex-start;
        gap: .625rem;
    }
    
    .sidebar-container {
        align-self: center;
        display: flex;
        width: 85%;
        height: fit-content;
        justify-content: flex-start; /* Center horizontally */
        align-content: flex-end;
        flex-shrink: 0;
    }
    
    .sidebar {
        align-self: center;
        background-color: rgba(14, 18, 28, 0.83);
        /* flex-grow: 1; */
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        /* margin-inline-end: 80px; */
        padding: 1em;
        gap: 2vh;
    }
    
    #sidebar1-container {
        flex-flow: column;
        margin-top: 10%;
    }
    
    #sidebar1 {
        flex-direction: column;
        justify-items: start;
        /* padding: 0; */
    }

    #sidebar1-gpa {
        align-self: flex-end;
        margin-top: -1.25em; /** #sidebar padding is done by rems */
        margin-right: -1.1em;
        /* background-color: rgb(46, 55, 60); */
        background-color: rgba(75, 169, 220, 0.463);
        /* background-color: rgba(220, 119, 75, 0.463); */
        font-size: .87em;
        padding: .3em;
        border-bottom-left-radius: .625em;
    }
    
    #sidebar1-utd-logo {
        width: 35%;
        height: auto;
    }
    
    #sidebar1-header {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        flex-shrink: 0;
        gap: 0;
    }

    #sidebar1-school {
        font-weight: bold;
    }
    
    #sidebar1-degree {
        font-size: 1.0625em;
        font-weight: 500;
        font-style: italic;
    }
    
    .sidebar1-class-header {
        display: none;
        margin-top: 1.25vh;
        align-self: flex-start;
    }
    
    .sidebar1-classes {
        display: none;
        text-align: left;
        margin-top: -1.25vh;
        margin-inline: 3%;
    }
    
    .sidebar1-class-type {
        font-weight: bold;
        margin-top: 1.2vh;
    }
    
    .sidebar1-class-list {
        margin-inline-start: 4%;
    }
    
    #sidebar1-button {
        display: none;
        font-size: large;
        background-color: rgba(0, 58, 124, 0);
        border: 2px solid rgb(167, 167, 167);
        color: white;
        padding: .3125em .625em;
        /* border-radius: 2px; */
        text-align: center;
        font-size: 1em;
    }
    
    #experience-section {
        display: none;
    }

    .sidebar2-skills {
        align-self: flex-start;
        padding-inline: 3%;
        align-content: start;
    }
    
    .sidebar2-header {
        text-align: start;
    }
    
    .sidebar2-skill-list {
        margin-top: 1vh;
        flex-flow: column nowrap;
        list-style-type: '- ';
        text-align: start;
        /* margin-left: 15px; */
    }
    
    .sidebar2-skill {
        justify-content: flex-start;
        align-items: start;
        gap: .625rem;
        margin-bottom: .5vh;
    }
    
    h1 {
        font-size: 4rem;
        margin: 0;
    }
    
    h3 {
        font-size: 1.3em;
        margin: 0;
        padding: 0;
    }
    
    h4 {
        font-size: 1.125em;
        margin: 0;
        padding: 0;
    }
    
    ul {
        padding: 0;
        margin: 0;
        width: auto; /* or a specific width */
        text-align: center;
    }
    
    #projects {
        display: grid;
        width: 70%;
        justify-content: space-evenly;
        margin-inline-start: 4.4%;
        grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
        gap: 5vh 5vw; /* row-gap column gap */
        /* flex-grow: 3; */
    
    }

    footer {
        /* margin-top: 20vh !important; */
        font-size: 0.7rem;
    }
}